<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="/includes/head.jsp" />

<div id="page">
	<div id="header"></div>

	<div id="mainarea">
		<div id="sidebar">
			<div id="headerleft">
				<h1>
					<a href="<c:url value="/home.jsp" />"><fmt:message
							key="time_pesquisa" />
					</a>
				</h1>
			</div>


			<div id="menulinks">
				<a href="<c:url value="/home.jsp" />"><fmt:message key="home" /></a> 
				<a href="<c:url value="/membro/index" />"><fmt:message key="membros" /> </a> 
				<a href="<c:url value="/publicacao/index" />"><fmt:message key="publicacoes" /></a> 
				<a class="active" href="<c:url value="/linhaPesquisa/index" />"><fmt:message key="linha" /> </a>
				#if($historicoVisitas)
				<a href="<c:url value="/visitante/index" />"><fmt:message key="visitante" /> </a>
				#end				
				<a href="<c:url value="/contato.jsp" />"><fmt:message key="contato" /></a>
			</div>
			
		</div>

		<div id="contentarea">


			<table align=center>
				<tr>
					<td>
						<table align=left>
							
							<tr>
								<td><br> <b><H3><fmt:message key="detalhe" /></H3> </b>
								</td>
							</tr>
							<tr>
								<td><fmt:message key="titulo" />: ${linhaPesquisa.titulo}</td>
							</tr>

							<tr>
								<td><fmt:message key="sumario" />: ${linhaPesquisa.sumario}</td>
							</tr>

							<tr>
								<td><fmt:message key="descricao_detalhada" />: ${linhaPesquisa.descricaoDetalhada}</td>
							</tr>
							<tr>
								<td><fmt:message key="links" />: ${linhaPesquisa.links}</td>
							</tr>
							<tr>
								<td><fmt:message key="financiadores" />: ${linhaPesquisa.financiadores}</td>
							</tr>

							<tr>
								<td><br> <b><H3><fmt:message key="membros" /></H3> </b>
								</td>
							</tr>
							<c:forEach var="membro" items="${membroList}">
							<tr>
								<td><fmt:message key="nome" />: <a href='<c:url value="/membro/detalhe?id=${membro.id}" />'>${membro.nome} ${membro.sobrenome}</a></td>
							</tr>
							</c:forEach>

						</table>
					</td>
				</tr>
				<tr>
					<td>

						<table align=center>
							<tr>
								<td>
									<form name="formAlterar" method="post"
										action="<c:url value="/linhaPesquisa/edita"/>">
										<input type="hidden" name="linhaPesquisa.id" value="${linhaPesquisa.id}">
										<input value="<fmt:message key="button_alterar" />" type="submit">
									</form></td>
								<td>
									<form name="formRemover" method="post"
										action='<c:url value="/linhaPesquisa/remove"/>'>
										<input type="hidden" name="linhaPesquisa.id" value="${linhaPesquisa.id}">
										<input type="hidden" name="msgExclusao"
											value="<fmt:message key="msg_exclusao_linha" />">
										<input value="<fmt:message key="button_remover" />" onclick="confirmarRemocao();"
											type="button">
									</form>
								</td>
							</tr>
						</table></td>
				</tr>
			</table>


		</div>
		<script type="text/javascript">
			function confirmarRemocao() {
				if (confirm(document.formRemover.msgExclusao.value)) {
					document.formRemover.submit();
				}
			}
		</script>


		<jsp:include page="/includes/tail.jsp" />